import request from '@/utils/request'

export default{
    //获取树结构数据
    getTree(){
        return request({
            url: `/eduservice/edu-subject/findTreeSubject`,
            method: 'get'
          })
    },
    //获取一条数据
    info(id){
        return request({
            url:`/eduservice/edu-subject/info/${id}`,
            method:"get",
        })
    },
    //保存
    saveSubject(teacher){
        return request({
            url:`/eduservice/edu-subject/save`,
            method:"post",
            data:teacher
        })
    },
    //更新
    updateSubject(teacher){
        return request({
            url:`/eduservice/edu-subject/edit`,
            method:"put",
            data:teacher
        })
    },
    //删除
    deleteSubject(ids){
        return request({
            url:`/eduservice/edu-subject/remove/batch`,
            method:"delete",
            data:ids
        })
    },

}